﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrdenCompraInsumoGrid.ascx.cs"
 Inherits="UILGestion.ObraAdmin.OrdenCompras.OrdenCompraInsumoGrid" %>

<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>

<script src="../../Scripts/controlGrid.js" type="text/javascript"></script>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>


<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />

    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">
                
     
                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="fecha" ForeColor="Blue" runat="server">FECHA</asp:LinkButton>
                </th>
                <th id="Th4" runat="server" >
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="numDocumento" ForeColor="Blue" runat="server">ORDEN</asp:LinkButton>
                </th>
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="lb2" CommandName="Sort" CommandArgument="proveedor"  ForeColor="Blue" runat="server">PROVEEDOR</asp:LinkButton>
                </th>
                 <th id="Th8" runat="server">
                    <asp:LinkButton ID="LinkButton7" CommandName="Sort" CommandArgument="unidad" ForeColor="Blue" runat="server">UNID.</asp:LinkButton>
               </th>
                  <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton6" CommandName="Sort" CommandArgument="cantidad" ForeColor="Blue" runat="server">CANTIDAD</asp:LinkButton>
               </th>
                <th id="Th3" runat="server" >
                    <asp:LinkButton ID="LinkButton4" CommandName="Sort" CommandArgument="precioSinIGV" ForeColor="Blue" runat="server">PRECIO <br />SIN IGV</asp:LinkButton>
                </th>
              
               <th id="Th6" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument="totalSinIGV" ForeColor="Blue" runat="server">TOTAL</asp:LinkButton>
               </th>
                 <th id="Th2" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="obra"  ForeColor="Blue" runat="server">OBRA</asp:LinkButton>
                </th>                     
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>

    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
            <td  align="right">
               
           
                 <%# Eval("fechaStr")%> <br />
            </td>
           
            <td width="120px" align="left">

              <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numDocumentoStr").ToString()%>'  
                 Target="_self"  ID="Hyperlink3"
                NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"formularioOrden").ToString()
                %>' 
               />  

              
             
            </td>
             
            
            <td align="left" width="350px">
                      <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"proveedor").ToString()%>'  
                 Target="_self"  ID="Hyperlink1"
                NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"formularioProveedor").ToString()
                %>' 
               />   
            
                 
            </td>
            <td align="left" width="50px">
            <%# Eval("unidad")%>
                 
            </td>
           
             <td align="left" width="50px">
            <%# Eval("cantidadStr")%>
                 
            </td>
              <td align="right" width="90px">
            <%# Eval("precioSinIGVStr")%> <br />
           
                 
            </td>
            
          
              <td align="right" width="90px">
              <%# Eval("totalSinIGVStr")%>
           
                 
            </td>
             <td align="right" width="250px">
            <%# Eval("obra")%>
                 
            </td>
            <%-- <td >
                   <asp:ImageButton runat= "server" 
               
                 Target="_self"  ID="Hyperlink1"
                PostBackUrl='<%# "~/Admin/InsumoInsertForm.aspx?type=E&id=" + DataBinder.Eval (Container.DataItem,"idInternal").ToString() + 
                 "&idtipoInsumo=" + DataBinder.Eval(Container.DataItem,"idTipoInsumo").ToString()%>' 
                 CssClass="GridIcon ico-edit" BorderStyle="None" ImageUrl="~/Images/listing/ico-edit.png"
               />  
                                  
            </td>--%>
            <%--<td>
                <asp:HyperLink ID="AddressLink" runat="server" Target="_blank" NavigateUrl='<%# "http://www.google.com/maps?q=" + Eval("Address") + ",+" + Eval("CityStateZip") %>'
                    Text='<%# Eval("Address") %>'></asp:HyperLink>
                <br />
                <%# Eval("CityStateZip") %>
            </td>--%>
            <%--<td>
                <asp:Repeater ID="Phones" runat="server" DataSource='<%# Eval("Phones") %>'>
                    <ItemTemplate>
                        <%# Container.DataItem %><br />
                    </ItemTemplate>
                </asp:Repeater>
                <cc1:EmailHyperlink ID="EmailLink" runat="server" Text='<%# Eval("Email") %>' Email='<%# Eval("Email") %>'
                    Name='<%# Eval("Name") %>'></cc1:EmailHyperlink>
            </td>--%>
            
           <%-- <td>
                <asp:HyperLink ID="HyperLink1" runat="server" 
                    ToolTip="Add to/Remove from Active Tag"><%# (bool)Eval("HasTag") ? "Remove" : "Add" %></asp:HyperLink>
            </td>--%>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                <h2 style="font-size: x-small; color: #960818">
                   
                    
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>





    
     